package com.sk.bilibili.model.activity;

import com.sk.api.annotations.Autowired;
import com.sk.bilibili.mapper.CoinMapper;
import com.sk.bilibili.mapper.PraiseMapper;
import com.sk.bilibili.model.BaseModel;
import com.sk.bilibili.other.JsonMap;
import com.sk.bilibili.utils.RequestUtils;
import com.sk.bilibili.view.activity.CoinVideoSetActivity;
import com.sk.bilibili.view.activity.PraiseVideoSetActivity;

public class PraiseVideoSetModel extends BaseModel<PraiseVideoSetActivity> {

    @Autowired
    PraiseMapper praiseMapper;

    public void loadData(Integer memberId) {
        JsonMap map=new JsonMap();
        map.put("size",2233);//全部获取
        map.put("memberId",memberId);
        RequestUtils.process(praiseMapper.getPraiseVideo(map),
                praisePage -> view.loadDataSuccess(praisePage.getRecords()));
    }

}